package com.vision.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @projectName: vision
 * @package: com.vision.pojo.entity
 * @className: Comment
 * @author: escapeicon@gmail.com
 * @description: 评论实体类
 * @date: 2024/1/25 20:18
 * @version: 1.0
 */
@Data
public class Comment {
    private Integer id; // 评论id
    private Integer userId; // 用户id
    private Integer videoId; // 视频id
    private String content; // 评论内容
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime; // 创建时间
    private Integer parentCommentId; // 父评论id
    private Integer replyUserId; // 回复用户id
    private Integer isTop; // 是否置顶
    private Integer likes; // 点赞数
}
